package uk.co.benbrown.jvis.model;

import java.util.ArrayList;
import java.util.List;

public class TeamData {
    private String id;
    private List<Team> teams;

    public List<Team> getTeams() {
	return teams;
    }

    public void setTeams(List<Team> teams) {
	this.teams = teams;
    }

    public void addTeam(Team team) {
	if (this.teams == null) {
	    this.teams = new ArrayList<Team>();
	}
	this.teams.add(team);
    }

    public void removeTeam(Team team) {
	if (this.teams == null) {
	    this.teams = new ArrayList<Team>();
	} else {
	    this.teams.remove(team);
	}
    }

    public String getId() {
	return id;
    }

    public void setId(String id) {
	this.id = id;
    }
}
